const fs = require('fs')
if(process.env.dev.trim() === 'test'){
  fs.writeFileSync('./src/router.ts', `export const apibefore = '/wx_app_test_pay'`)
}else{
  fs.writeFileSync('./src/router.ts', `export const apibefore = '/wx_app_pay'`)
}
if(process.env.dbdev.trim() === 'test'){
  fs.writeFileSync('./src/config/database.config.ts',fs.readFileSync('./src/config/database_dev.config.ts'))
}else{
  fs.writeFileSync('./src/config/database.config.ts',fs.readFileSync('./src/config/database_prod.config.ts'))
}
